Use gtk_widget_queue_draw_area instead of gtk_widget_draw in shooter
authorChristian Dywan <christian@twotoasts.de>
Fri, 16 Oct 2009 14:40:18 +0000 (16:40 +0200)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 May 2010 23:51:17 +0000 (01:51 +0200)
docs/tools/shooter.c

index 95555ecd1083f9631513bf79424f8ceeb1cd8b29..f8df8b57539a32ad79c2d911c61d4b5be6201b4c 100644 (file)
@@ -205,7 +205,9 @@ int main (int argc, char **argv)
       window = info->window->window;
 
       gtk_widget_show_now (info->window);
-      gtk_widget_draw (info->window, &(info->window->allocation));
+      gtk_widget_queue_draw_area (info->window,
+        info->window->allocation.x, info->window->allocation.y,
+        info->window->allocation.width, info->window->allocation.height);
 
       while (gtk_events_pending ())
        {